/**
 * 
 */
package net.devask.mathml.client;

import org.gwtwidgets.client.ext.ExtDOM;
import org.gwtwidgets.client.ext.Namespace;

import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Element;

/**
 * @author Devask
 */
public class MathMLWidget extends XMLWidget {

  public static final Namespace mathMLNamespace = new Namespace("math", "http://www.w3.org/1998/Math/MathML");
  
  public MathMLWidget(Namespace namespace) {
    super(mathMLNamespace);
    // TODO InvalidArgumentException if or similar if namespace is not valid MathML namespace?
  }
  
  public MathMLWidget() {
    super(mathMLNamespace);
    final Element root = ExtDOM.createElementNS(mathMLNamespace, "math");
    setElement(root);
  }

}
